import React, { Component } from 'react'
import { Route, NavLink } from 'react-router-dom'
import Test from './Test'
export default class My extends Component {
  render() {
    return (
      <div>
        <h3>我的音乐</h3>
        <NavLink to="/my/test">滴滴滴</NavLink>
        <Route path="/my/test" component={Test}></Route>
        <button onClick={this.goFind}>点击去发现</button>
      </div >
    )
  }
  goFind = () => {
    console.log(this.props);
    this.props.history.push('/find')
  }
}
